<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.div0,p{
				border: 2px solid red;
			}
			.div1,.div2,.div3{
				width: 100px;
				height: 100px;
				margin: 6px;
			}
			.div1{
				/* 脱离默认的流定位，变成浮动定位，右浮动 */
				float: right;
				background-color: red;
			}
			.div2{
				float: right;
				background-color: green;
			}
			.div3{
				float: right;
				background-color: blue;
			}
			p,.div4{
				/* clear:消除浮动对自己的影响，当前元素会移动到浮动元素的下方。 */
				clear: right;
			}
		</style>
	</head>
	<body>
		<div class="div0">
			<div class="div1"></div>
			<div class="div2"></div>
			<div class="div3"></div>
			<div class="div4"></div>
		</div>
		<p>浮动时候看看我的位置</p>
	</body>
</html>
